<!-- 协议 -->
<template>
	<view class="content" v-html="infoObj.docContent">

	</view>
</template>

<script>
	import {
		docAgreement
	} from '@/api/common.js'
	export default {
		data() {
			return {
				infoObj:null
			}
		},
		onLoad(option) {
			if (option.docCode) {
				this.selectDocumentFun(option.docCode)
			}

		},
		methods: {
			selectDocumentFun(docCode) {
				docAgreement({
					docCode: docCode
				}).then(res => {
					if (res.code === 200) {
						uni.setNavigationBarTitle({
							title: res.data.docTitle || this.$APPTITLE
						})
						this.infoObj = res.data
					} else {
						uni.showToast({
							title: res.message,
							icon: 'none'
						})
					}
				})
			}
		}


	}
</script>

<style>
	page{
		background-color: white;
	}
</style>
<style lang="scss" scoped>
	.content{
		padding: 30rpx;
	}
</style>
